//
// Created on 2024/9/5.
//
// Node APIs are not fully supported. To solve the compilation error of the
// interface cannot be found, please include "napi/native_api.h".

#pragma once

#include <string>
#include <node_api.h>
#include "njs_video_render.h"

namespace ohosrtc {

class NJSVideoRenderManager {
 public:
  static napi_value Init(napi_env env, napi_value exports);
  static NJSVideoRenderManager* GetInstance();

  NJSVideoRenderManager();

  NJSVideoRender* GetRender(const std::string &id);
  void DisposeRender(const std::string &id);
};
} 